<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <h2>我是ejs渲染的页面</h2>
    <ul>
      <% arr.forEach(item=>{ %>
      <li><%= item %></li>
      <% }) %> <% if(isLogin){ %>
      <li>已经登录</li>
      <%} else {%>
      <li>登录 注册</li>
      <% } %>
    </ul>
  </body>
</html>
